﻿@model IEnumerable<FileModel>
@{
  ViewBag.Title = "Images";
}

<table>
  <thead><tr><td>ID</td><td>Thumbnail</td><td>Content Type</td><td>File Name</td><td>Created</td><td>Modified</td><td></td></tr></thead>
  <tbody>
    @foreach (var file in Model)
    {
      <tr>
        <td>@file.Id</td>
        <td><img alt="Image" src="/Home/Images/@file.Id" width="120" height="120" /></td>
        <td>@file.ContentType</td>
        <td>@(new HtmlString(file.FileName))</td>
        <td>@file.Created</td>
        <td>@file.Modified</td>
        <td><a href="/Home/Edit/@file.Id" title="Edit">Edit</a></td>
      </tr>
    }
  </tbody>
  <tfoot>
    <tr>
      <td><a href="/Home/Add" title="Add">Add</a></td>
    </tr>
  </tfoot>
</table>
